<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>权限编辑</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
  <ul class="breadcrumb alert-info">
		<c:if test="${t.id==null }">
			<c:if test="${status=='quickAdd' }">
					<li>快速添加</li>				
			</c:if>
			<c:if test="${status!='quickAdd' }">
					<li>权限添加</li>	
			</c:if>
		</c:if>
		<c:if test="${t.id!=null }">
			<c:if test="${status==view}">
				<li>权限修改</li>				
			</c:if>
			<c:if test="${status!=view}">
				<li>权限查看</li>
			</c:if>
		</c:if>
	</ul>
	<form id="form" class="form-inline well">
		<input name="id" type="hidden" value="${t.id }">
		<c:if test="${status!='quickAdd' }">
		<label class="text">
			名称:
			<input class="input-medium" type="text" name="text" value="${t.text }">
		</label>
		</c:if>
		
		<c:if test="${status!='quickAdd' }">
		<label class="text">
			方法:
			<input class="input-medium" type="text" name="method" value="${t.method }">
		</label>
		</c:if>
		<label>
			菜单:
			<input name="menu.id" type="hidden" value="${t.menu.id }">
			<input type="text" name="menu.name" class="input-medium" value="${t.menu.name }">
			<a class="icon-search" onclick="search_d('system/menu?queryChild','menu.id,menu.name',1)"></a>
		</label>
		<div class="control-group">
                <div class="controls">
                    <c:if test="${status!='view'}">
                    	<c:if test="${status!='quickAdd'}">
                        <button class="btn btn-primary" onclick="form_submit('system/permission?save')">保存</button>
                        </c:if>
                    </c:if>
                    <c:if test="${status=='quickAdd'}">
                        <button class="btn btn-primary" onclick="form_submit('system/permission?quickSave')">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('system/permission?list')">返回</a>
                </div>
         </div>
	</form>
	<jsp:include page="/foot.jsp"></jsp:include>
</body>
</html>